package cn.lili.controller.payment;

import cn.lili.common.vo.ResultMessage;
import cn.lili.modules.kit.params.WithdrawParams;
import cn.lili.modules.payment.entity.vo.LiUserPointsWithdrawVO;
import cn.lili.modules.payment.service.LiUserPointsWithdrawService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Api(tags = "f分记录表")
@RestController
@RequestMapping("/payment/point/withdraw")
public class LiUserPointWithdrawController {
    @Autowired
    private LiUserPointsWithdrawService pointsWithdrawService;

    /**
     * 绿色积分提现，记录分页查询
     * @return 绿色积分记录
     */
    @GetMapping("/page")
    public ResultMessage<Page<LiUserPointsWithdrawVO>> withdrawPage(WithdrawParams withdrawParams) {
        return pointsWithdrawService.withdrawPage(withdrawParams);
    }

}
